<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<form id='fmTbCompanyProductTypeMiddle'  action='TbCompanyProductTypeMiddleServlet?method=${sessionScope.tbCompanyProductTypeMiddle==null?'add':'edit'}' method='post'>
 <input type="hidden" name="companyProductTypeMiddleId" id="companyProductTypeMiddleId" value="${sessionScope.tbCompanyProductTypeMiddle.companyProductTypeMiddleId}" />
<table>
<tr><td colspan='2'></td></tr>
<tr>
    <td>供应商</td>
    <td>
    <div>
    	<select  name='companyId' id='companyId' >
    	<option value="0" selected >无</option>
    	<c:forEach items="${sessionScope.tbCompanyList==null?'':sessionScope.tbCompanyList}" var="tbCompany" varStatus="status">
    	<option value="${tbCompany.companyId }" ${sessionScope.tbCompanyProductTypeMiddle.companyId == tbCompany.companyId?'selected':''}>${tbCompany.companyName}</option>
    	</c:forEach>
    	</select>
    </div>
</tr>
<tr>
    <td>产品类型</td>
    <td>
    <select name='productTypeId' id='productTypeId' >
		<option value="0" selected >无</option>
	<c:forEach items="${sessionScope.tbProductTypeList==null?'':sessionScope.tbProductTypeList}" var="tbProductType" varStatus="status">
		<option value="${tbProductType.productTypeId}" ${sessionScope.tbCompanyProductTypeMiddle.productTypeId == tbProductType.productTypeId?'selected':''}>${tbProductType.productTypeName}</option>
	</c:forEach>
    </select>
    </td>
</tr>
<tr>
    <td  colspan='2' align="center"><input type="submit" name="btsubmit" id="btsubmit" value="${sessionScope.tbCompanyProductTypeMiddle==null?'添加':'修改'}" /><input type='reset' value='重置' /><input type='button' value='返回' onclick='history.go(-1);' /></td>
</tr></table>
</form><jsp:include page="../foot.jsp"></jsp:include>
</body></html>